#pragma once

#include "HashTable.h"

template <class K>
class Hashset
{
	struct setKofT
	{
		const K& operator()(const K& k)
		{
			return k;
		}
	};
	typedef my_std::Hash<K,K,setKofT> Hash;
	typedef typename Hash::const_iterator iterator;
	typedef typename Hash::const_iterator const_iterator;

private:
	Hash _ha;
public:
	iterator begin()const
	{
		return _ha.begin();
	}

	iterator end()const
	{
		return _ha.end();
	}

	pair<iterator, bool> insert(const K& kv)
	{
		pair<typename Hash::iterator,bool> it = _ha.insert(kv);
		return make_pair(it.first,it.second);
	}

	pair<iterator, bool> earse(const K& key)
	{
		return _ha.earse(key);
	}


};
